package com.sxhnpg.job;

import org.apache.log4j.Logger;

import com.sxhnpg.util.CreateMonthTable;


public class CreateTableJob {
	private static Logger logger = Logger.getLogger(CreateTableJob.class);  

	private static boolean running = false;
	
	public void start() {
		if(!running) {
			running = true;
			try {
				CreateMonthTable.createMonthTable();	// 创建月表
			} catch (Exception e) {
				logger.error("CreateTableJob Fail ... ");
				logger.error(e);
			}
			running = false;
		}
	}
}